#ifndef MWIN_H
#define MWIN_H

#include <QMainWindow>
#include <QLabel>
#include "client.h"
#include "logondialog.h"

namespace Ui {
class MWin;
}

class MWin : public QMainWindow
{
    Q_OBJECT
    xmlrpc::Client * xmlclient;
    int id_logon;
    int id_getuserslist;
    bool logonKey;
    QString hash;
    int usertype;
    QString username;
    QLabel stlabel;
public:
    explicit MWin(QWidget *parent = 0);
    void start();
    ~MWin();
    
private:
    Ui::MWin *ui;

private slots:
    void slotDone(int id, QVariant variant );
    void slotFail(int id, int errcode, QString errstr);
};

#endif // MWIN_H
